#include <iostream>
#include "UserManager/User.h"
#include "MenuManager/Menu.h"
#include "Utils/Utils.h"
using namespace std;



int main(int argc, char* argv[]) {

    Menu menu;
    while (1)
    {
        
        switch (menu.getChoice())
        {
        case 1:
                //cout << "登录" << endl;
                menu.displayMenu(Operation::OPLOGIN,ROLEUSER);
            break;
        case 2:
                //cout << "注册" << endl;
                
                switch (menu.getRegisterChoice())
                {
                case 1:
                    //注册管理员
                    //cout << "注册管理员" << endl;
                    
                    menu.displayMenu(Operation::OPREGISTER,ROLEADMIN);
                    break;
                case 2:
                    //注册普通用户
                    //cout << "注册普通用户" << endl;
                    menu.displayMenu(Operation::OPREGISTER,ROLEUSER);
                    break;
                
                default:
                    break;
                }
            break;
        default:
            break;
        } 
    }
    
    

    // 创建一个 User 对象
    //User user("Alicdde","ddd" ,25,User::ADMIN);

    // 输出用户信息
    //std::cout << "Username: " << user.getUsername() << std::endl;
    //std::cout << "Age: " << user.getAge() << std::endl;

    return 0;
}
